
import 'dart:convert';

ProgressReadingDto progressReadingDtoFromJson(String str) => ProgressReadingDto.fromJson(json.decode(str));

String progressReadingDtoToJson(ProgressReadingDto data) => json.encode(data.toJson());

class ProgressReadingDto {
    ProgressReadingDto({
        this.assessmentLevel,
        this.bilingual,
        this.bookCode,
        this.exported,
        this.forAssignment,
        this.interestLevel,
        this.language,
        this.newArrival,
        this.proficiencyLevel,
        this.programType,
        this.query,
        this.seriesId,
        this.teacherAssessment,
        this.teacherResource,
        this.textType,
        this.topBook,
        this.topics,
    });

    String? assessmentLevel;
    bool? bilingual;
    String? bookCode;
    bool? exported;
    bool? forAssignment;
    List<String>? interestLevel;
    String? language;
    bool? newArrival;
    List<String>? proficiencyLevel;
    List<String>? programType;
    String? query;
    List<String>? seriesId;
    bool? teacherAssessment;
    bool? teacherResource;
    List<String>? textType;
    bool? topBook;
    List<String>? topics;

    factory ProgressReadingDto.fromJson(Map<String, dynamic> json) => ProgressReadingDto(
        assessmentLevel: json["assessmentLevel"],
        bilingual: json["bilingual"],
        bookCode: json["bookCode"],
        exported: json["exported"],
        forAssignment: json["forAssignment"],
        interestLevel: List<String>.from(json["interestLevel"].map((x) => x)),
        language: json["language"],
        newArrival: json["newArrival"],
        proficiencyLevel: List<String>.from(json["proficiencyLevel"].map((x) => x)),
        programType: List<String>.from(json["programType"].map((x) => x)),
        query: json["query"],
        seriesId: List<String>.from(json["seriesId"].map((x) => x)),
        teacherAssessment: json["teacherAssessment"],
        teacherResource: json["teacherResource"],
        textType: List<String>.from(json["textType"].map((x) => x)),
        topBook: json["topBook"],
        topics: List<String>.from(json["topics"].map((x) => x)),
    );

    Map<String, dynamic> toJson() => {
        "assessmentLevel": assessmentLevel,
        "bilingual": bilingual,
        "bookCode": bookCode,
        "exported": exported,
        "forAssignment": forAssignment,
        "interestLevel": List<dynamic>.from(interestLevel!.map((x) => x)),
        "language": language,
        "newArrival": newArrival,
        "proficiencyLevel": List<dynamic>.from(proficiencyLevel!.map((x) => x)),
        "programType": List<dynamic>.from(programType!.map((x) => x)),
        "query": query,
        "seriesId": List<dynamic>.from(seriesId!.map((x) => x)),
        "teacherAssessment": teacherAssessment,
        "teacherResource": teacherResource,
        "textType": List<dynamic>.from(textType!.map((x) => x)),
        "topBook": topBook,
        "topics": List<dynamic>.from(topics!.map((x) => x)),
    };
}
